/*
 * @Author: Haochen
 * @Date: 2021-12-24 17:25:46
 * @LastEditTime: 2021-12-25 10:40:02
 * @FilePath: \recipes-admin-system\src\api\modules\recipes.js
 */
import axios from 'axios';

export default {
  findAllMenu(data) {
    return axios({
      url: '/admin/findAllMenu',
      method: 'POST',
      data,
    });
  },

  getMenuDetail(data) {
    return axios({
      url: '/admin/menuDetail',
      method: 'POST',
      data,
    });
  },

  updateMenu(data) {
    return axios({
      url: '/admin/updateMenu',
      method: 'POST',
      data,
    });
  },

  searchMenu(data) {
    return axios({
      url: '/admin/searchMenu',
      method: 'POST',
      data,
    });
  },
};
